package com.ternnetwork.core.notice.service;

import com.ternnetwork.commons.model.http.BaseResponse;
import com.ternnetwork.core.notice.dto.NoticeDto;
import com.ternnetwork.core.notice.dto.NoticeQueryDto;
import org.springframework.data.domain.Pageable;

public interface NoticeService {
    BaseResponse add(NoticeDto dto, String username);
    BaseResponse findByPage(Pageable pageable, NoticeQueryDto dto, String username);
    BaseResponse update(NoticeDto dto, String username);
    BaseResponse deleteById(Long id,String username);
    BaseResponse getOne(Long id,String username);
    BaseResponse publish(Long id, String username);
    BaseResponse deletePublish(Long id, String username);
    BaseResponse getPublishedOne(String publishedCode,String username);
    BaseResponse countAll();
}
